import javax.swing.JFrame;

public class EvolverFrame extends JFrame
{
	public EvolverFrame()
	{
		// evolve some stuff
		// GeneticEvolver thisEvolver = new GeneticEvolver();

		this.add(new EvolverInterface());

		// TODO: use this code to create a tictactoe game against the AI
		// new TTTFrame();
		// can call this in the code to open a tic tac toe game!
		// add arguments for a certain genome to play against an A.I.

		GeneticEvolver evolver = new GeneticEvolver();
		for (int i = 0; i < 100; i++)
		{
			evolver.run();
		}

		System.out.println(evolver.getBest().serial);

		// GeneticEvolver evolver = new GeneticEvolver();
		// EvolverInterface evoInterface = new EvolverInterface();

		this.setTitle("Tic-Tac-Toe Evolver");
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setSize(600, 600);
		this.setVisible(true);
		this.setResizable(true);
	}
}
